package com.xt.purchasingsystem.utils;

import lombok.Data;

/**
 * 响应结果
 */
@Data
public class Result {
    //状态码 详情请看ResultCode 枚举类
    private int code;
    //返回消息
    private String message;
    //返回结果对象
    private Object data;



    public Result() {
    }
    public Result(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
    public Result(int code, String message) {
        this.code = code;
        this.message = message;

    }




}
